package ModelLayer;


/**
 * Write a description of class Customer here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Customer  //the customer class. Used to make customer-objects
{
    // instance variables
    private String name;
    private String code;
    private String address;
    private int paymentInfo;
    private String email;
    private int tlf;

    /**
     * Constructor for objects of class Customer
     */
    public Customer(String name, String code, String address, int paymentInfo, String email, int tlf)
    {
        this.name = name;
        this.code = code;
        this.address = address;
        this.paymentInfo = paymentInfo;
        this.email = email;
        this.tlf = tlf;
    }
    
    public Customer(String name, String code)
    {
        this.name = name;
        this.code = code;
        address = "Nowhere street 00";
        paymentInfo = 01010100111;
        email = "generic@whatever.com";
        tlf = 10203040;
    }
    
    public String getName() //returns the name of the customer
    {
        return name;
    }
    
    public String getCode() //returns the code of the customer
    {
        return code;
    }
    
    public void printAll()  //prints all the information about the customer
    {
        System.out.println("-DETAILS-");
        System.out.println("Name: " + name);
        System.out.println("Code: " + code);
        System.out.println("Address: " + address);
        System.out.println("Payment Information: " + paymentInfo);
        System.out.println("Email: " + email);
        System.out.println("Telephone: " + tlf);
        System.out.println("-------");
    }
}
